package com.example.yumingdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/{domainId}")
@RestController
@SpringBootApplication
public class YumingDemoApplication {

    @GetMapping("/hello")
    public String hello(@PathVariable Long domainId) {
        return "hello" + domainId;
    }


    public static void main(String[] args) {
        SpringApplication.run(YumingDemoApplication.class, args);
    }

}
